package BasicModel.Element.Component;

import java.util.LinkedList;


public class ActionSet {
	String actionSetName;
	LinkedList<Action> actionList;
	boolean isIFCond;
	Condition condition;
	public ActionSet (){
		actionList = new LinkedList<Action>();
		isIFCond = false;
	}
	public ActionSet(Condition cond){
		actionList = new LinkedList<Action>();
		isIFCond = true;
		condition =cond;
	}
	public void addAction(Action n_Action){
		actionList.add(n_Action);
	}
	public void setCondition(Condition cond){
		isIFCond =true;
		condition = cond;
	}
	public Condition getCondition(){
		if(isIFCond){
			return condition;
		}
		return null;
	}
	
	public LinkedList<Action> getActionList(){
		return this.actionList;
	}
}
